package com.zdf.license.creator.config;

import com.zdf.license.creator.service.LicenseCreatorService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
@EnableConfigurationProperties({LicenseCreatorProperties.class})
public class LicenseCreatorAutoConfigure {

    public LicenseCreatorAutoConfigure(){
        log.info("证书生成服务初始化...");
    }

    @Bean
    public LicenseCreatorService licenseCreatorService(){
        return new LicenseCreatorService();
    }

}
